class Transitionlist {
  List<TransRecordList> _transRecordList;
  double _netreceipt;
  int _transTotal;
  int _transState;
  int _totalCount;
  List<TransRecordList> get transRecordList => _transRecordList;
  double get netreceipt => _netreceipt;
  int get transTotal => _transTotal;
  int get transState => _transState;
  int get totalCount => _totalCount;

  Transitionlist(
      {List<TransRecordList> transRecordList,
      double netreceipt,
      int transTotal,
      int transState,
      int totalCount}) {
    _transRecordList = transRecordList;
    _netreceipt = netreceipt;
    _transTotal = transTotal;
    _transState = transState;
    _totalCount = totalCount;
  }

  Transitionlist.fromJson(dynamic json) {
    if (json["transRecordList"] != null) {
      _transRecordList = [];
      json["transRecordList"].forEach((v) {
        _transRecordList.add(TransRecordList.fromJson(v));
      });
    }
    _netreceipt = json["netreceipt"];
    _transTotal = json["transTotal"];
    _transState = json["transState"];
    _totalCount = json["totalCount"];
  }
}

class TransRecordList {
  String orderNo;
  int payMode;
  int transState;
  double orderAmt;
  double refundAmt;
  double discountAmt;
  String payDate;
  String refundDate;
  String cashierName;

  TransRecordList.fromJson(dynamic json) {
    orderNo = json["orderNo"];
    payMode = json["payMode"];
    transState = json["transState"];
    orderAmt = json["orderAmt"];
    refundAmt = json["refundAmt"];
    discountAmt = json["discountAmt"];
    payDate = json["payDate"];
    refundDate = json["refundDate"];
    cashierName = json["cashierName"];
  }
}
